package com.study.portal.service.impl;

import com.study.portal.dao.IUserAccountDao;
import com.study.portal.pojo.UserAccount;
import com.study.portal.service.IUserAccountService;
import com.study.portal.util.MD5;

public class UserAccountServiceImpl implements IUserAccountService {

	private IUserAccountDao userAccountDao;
	
	public void setUserAccountDao(IUserAccountDao userAccountDao) {
		this.userAccountDao = userAccountDao;
	}

	public UserAccount login(String userEmail, String pwd) {
		//对密码进行MD5转换
		return userAccountDao.login(userEmail, MD5.encrypt(pwd));
	}

}
